package jmine.tec.rpc.integration;

import jmine.tec.rpc.server.base.AbstractRestServiceImplementor;

import org.apache.commons.lang.StringUtils;

/**
 * Implementação do serviço de rest exemplo
 * 
 * @author lundberg
 */
public class SampleRestImplementor extends AbstractRestServiceImplementor implements SampleRest {

    /**
     * {@inheritDoc}
     */
    public String reverse(String string) {
        return StringUtils.reverse(string);
    }

    /**
     * {@inheritDoc}
     */
    public String concatenate(String... strings) {
        return StringUtils.join(strings);
    }

    /**
     * {@inheritDoc}
     */
    public String[] split(String string, String regex) {
        return string.split(regex);
    }

    /**
     * {@inheritDoc}
     */
    public String join(String separator, String... strings) {
        return StringUtils.join(strings, separator);
    }
}
